home *** CD-ROM | disk | FTP | other *** search
/ Delphi Informant Complete 1995 - 2000 / Delphi Informant Complete 1995 to 2000.iso / Delphi Informant Magazine Complete Works SOURCE CODE 1995.rar / 1995 / OCT / DR9510 / enter.pas < prev    next >
Pascal/Delphi Source File  |  1995-08-23  |  795b  |  45 lines

  1. unit Enter;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls, Buttons;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     Edit1: TEdit;
  12.     Edit2: TEdit;
  13.     Edit3: TEdit;
  14.     Edit4: TEdit;
  15.     Edit5: TEdit;
  16.     Edit6: TEdit;
  17.     BitBtn1: TBitBtn;
  18.     procedure Edit1KeyPress(Sender: TObject; var Key: Char);
  19.     procedure BitBtn1Click(Sender: TObject);
  20.   private
  21.     { Private declarations }
  22.   public
  23.     { Public declarations }
  24.   end;
  25.  
  26. var
  27.   Form1: TForm1;
  28.  
  29. implementation
  30.  
  31. {$R *.DFM}
  32.  
  33. procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
  34. begin
  35.   if Key = Chr(VK_RETURN) then
  36.      Perform(WM_NEXTDLGCTL,0,0);
  37. end;
  38.  
  39. procedure TForm1.BitBtn1Click(Sender: TObject);
  40. begin
  41.   Close;
  42. end;
  43.  
  44. end.
  45.